<?php
/**
 * Created by b17
 * 2/22/12 6:17 PM
 */

namespace Managers\Searchers;

class News extends Base
{
    protected $index = "news_articles";

    protected function init($options)
    {
        $fieldWeights = array('title' => 4, 'introduction' => 2);
        $this->sm->setFieldWeights($fieldWeights);
    }

    public function addQuery($query)
    {
        $this->sm->addQuery($query, $this->index);
    }
}
